<!--
 * @Description:
 * @Author: dh
 * @Date: 2021-08-19 17:20:34
 * @LastEditors: dh
 * @LastEditTime: 2022-07-22 10:41:45
-->
<template>
	<Test :msg="msg" @onMyChange="change" />
</template>

<script lang="ts">
import { ref, defineAsyncComponent, defineComponent } from 'vue';

export default defineComponent({
	components: {
		Test: defineAsyncComponent(() => import('./components/Test.vue')),
	},
	setup() {
		const msg = ref('hello');

		const change = function (data: number): void {
			console.log(123, data);
		};

		return { msg, change };
	},
});
</script>

<style lang="sass" scoped></style>
